package com.qst.service.impl;

import com.qst.dao.StudentMapper;
import com.qst.po.Student;
import com.qst.service.IStudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class StudentServiceImpl implements IStudentService {
    @Autowired
    private StudentMapper studentMapper;
    @Override
    public int getclastutalcount(int cid) {
        return studentMapper.getclastutalcount(cid);
    }

    @Override
    public List<Student> getclastubypage(int cid, int page, int limit) {
        return studentMapper.getclastubypage(cid,(page-1)*limit,limit);
    }
}
